import { Http } from '@angular/http';
import { Injectable } from '@angular/core';
/*
  Generated class for the PagesLoginLoginProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/
@Injectable()
export class LoginProvider {

  constructor(public http: Http) {
    console.log('Hello PagesLoginLoginProvider Provider');
  }

  login(param){
    return this.http.post('/api/login', param);
  }

  very(){
    return this.http.get('/api/userInfo',{});
  }
}
